<template>
    <el-checkbox v-model="checked1" @change="选择事件"  >选择1</el-checkbox>
    <el-checkbox v-model="checked2" @change="选择事件"  >选择2</el-checkbox>
</template>
  
<script  setup>
import { ref } from 'vue'

const checked1 = ref(false)
const checked2 = ref(true)
const 选择事件 = () => {
    console.log(checked1.value, checked2.value)
}
</script>


<style lang='scss'  scoped>
</style>